﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

 
public partial class search : System.Web.UI.Page
{
    
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        
        
        awservices.ItemSearchRequest sr =   new awservices.ItemSearchRequest ();
        sr.Keywords = "SD card";
        awservices.ItemSearchRequest[] srs = new awservices.ItemSearchRequest[1];
        
        srs[0] = sr;
        awservices.ItemSearch a = new awservices.ItemSearch();
        a.AssociateTag = "AKIAJDK3LACVXBMQN65Q";
        a.AWSAccessKeyId = "QSylU79qp4xjlBYKC/jRTlGU+og1Way/w+Q/29gt";
        a.Request = srs;
        awservices.ImageSet i = new awservices.ImageSet();
        
        awservices.AWSECommerceServicePortTypeClient c = new awservices.AWSECommerceServicePortTypeClient();

        awservices.ItemSearchResponse isr =  c.ItemSearch(a);
        TextBox1.Text =  isr.Items.Count().ToString();

    
        
    }
}